import request from '@/utils/request'

// 获取路由// 查询玉米脱粒记录列表
export function getPiecharts(query) {
  return request({
    url: '/dashboard/getPieCharts',
    method: 'get',
    params: query
  })
}

export function getStackList(query) {
  return request({
    url: '/dashboard/getStockList',
    method: 'get',
    params: query
  })
}

// 获取入库价格统计
export function getWarehouseEntryStat(query) {
  return request({
    url: '/dashboard/getEntryPriceStat',
    method: 'get',
    params: query
  })
}

// 获取出库价格统计
export function getWarehouseOutStat(query) {
  return request({
    url: '/dashboard/getOutPriceStat',
    method: 'get',
    params: query
  })
}